package com.coocaa.x.service.litecontent.data.system.com.coocaa.x;

import com.coocaa.x.framework.data.JObject;
import com.coocaa.x.service.litecontent.data.ResultPackage;
import com.skyworth.webSDK.webservice.tcappstore.StoreApkInfo;

public class RP_Upgrade extends ResultPackage {
    public static class Upgrade_Item extends JObject {
        public static final int IN_DOWNLONGING = 1;
        public static final int DOWNLONGED = 2;
        public int state = IN_DOWNLONGING;
        public String appName;// 应用名称
        public String packageName;// 包名
        public String verName;// 版本名称
        public String verCode;// 版本号
        public String updateTime;// 更新时间
        public String updateInfo;// 更新信息
        public String forced;// 强制更新0为否1为是
        public String savedApk = null;
        public String downloadURL = null;

        public Upgrade_Item() {
        }

        public Upgrade_Item(StoreApkInfo info) {
            appName = info.appName;
            packageName = info.appPackage_Name;
            verName = info.verName;
            verCode = info.verCode;
            updateTime = info.updateTime;
            updateInfo = info.updateInfo;
            forced = info.forced;
            downloadURL = info.apkDownUrl;
        }
    }

    public ResourcePackage<Upgrade_Item> resource = new ResourcePackage<Upgrade_Item>();
}